package com.shiliao.app.activity.Feedback.presenter;

import com.shiliao.app.activity.Feedback.service.DynamicService;
import com.shiliao.app.activity.Feedback.service.impl.DynamicImpl;
import com.shiliao.app.activity.Feedback.view.DynamicView;
import com.shiliao.app.utils.YMServerUtil;
import com.yimei.framework.mvp.presenter.IBasePresenter;
import com.yimei.framework.network.ICallBack;

/**
 * Created by yinzhiqiang on 2018/4/19.
 */

public class DynamicPresenter extends IBasePresenter<DynamicService>{
    private DynamicService dynamicService;
    private DynamicView dynamicView;
    public DynamicPresenter(DynamicView view) {
        dynamicView=view;
        dynamicService=new DynamicImpl();
        setService(dynamicService);
    }

    public void requestDynamic(){
        dynamicService.request(YMServerUtil.ACTION_DYNMIC, null, new ICallBack() {
            @Override
            public void onSuccess(int statusCode, Object result) {

            }

            @Override
            public void onFail(int statusCode, Object result) {

            }
        });
    }
}
